﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using stackFluent.Domain;
using zic_dotnet;

namespace stackFluent.Application {
    public interface IUserService {
        User UserValidate(string email, string pwd);
        bool UserCheckEmailExist(string email);
        User UserGet(string userkey);
        User UserGet(Guid gid);
        Pager<User> UserGetPager(int psize, int pindex);

        bool UserChangePassword(string email, string oldPwd, string newPwd);
        Guid UserCreat(User user);
        User UserUpdate(User upuser);
        void UserDelete(int id);
    }
}